{include file="ikf_include_top" /}
<title>留言- {$site_name}</title>
<meta name="keywords" content="{notempty name="list_keywords"}{$list_keywords}{else/}最新{$list_name},{$site_keywords}{/notempty}">
<meta name="description" content="{notempty name="list_description"}{$list_description}{else/}{$site_description}{/notempty}">
{include file="zp_include" /}
</head>
<body class="zanpian-mobile">
{include file="zp_header" /}
<!--盒子开始-->
<div class="container">
<div class="row">
{gb var="gb_list" page="true" limit="'.$GLOBALS['config']['user']['sys']['user_gbnum'].'" order="gb_addtime desc"}{/gb}
<!--左侧盒子开始-->
<div class="box-main-content">
  <div class="layout-box clearfix">
    <div class="box-title bt">
      <h3 class="m-0"><i class="icon iconfont">&#xe635;</i>留言板</h3>
      <div class="more pull-right">共有<span class="text-color">“{$gb_list->total()}”</span>条留言</div>
    </div>
    <div class="comment-focus" id="content">
      <ul class="ui-comment">
       {volist name="gb_list" id="zanpian"}
        {php}$lou=$gb_list->total()-(($param['p']-1) * $GLOBALS['config']['user']['sys']['user_gbnum'] + $key);{/php}
        <li class="comment-item fn-clear">
          <div class="comment-num hidden-xs"><em class="text-color">{$lou}</em><span class="text-muted">条留言<span></span></span></div>
          <div class="comment-post">
            <div class="comment-post-cnt">
              <div class="comment-body">
                <div class="comment-top"><span class="user">{empty name="zanpian.user_id"}游客 {$zanpian.gb_nickname}{else/}<a href="{:zanpian_user_url('user/home/index',$zanpian)}">{$zanpian.user_nickname}</a>{/empty}</span><span class="time">{$zanpian.gb_addtime|time_format='Y-m-d H:i:s',1}</span></div>
                <div class="comment-text">{$zanpian.gb_content|htmlspecialchars}</div>
              </div>
              {notempty name="zanpian.gb_intro"}
              <div class="comment-sub">
                <div class="comment-top text-success">管理员回复:</div>
                <div class="comment-text">{$zanpian.gb_intro}</div>
              </div>
              {/notempty} </div>
          </div>
        </li>
        {/volist}
      </ul>
    </div>
    {notempty name="gb_list"}
    <div class="box-page clearfix ajax-page" id="long-page">
      <ul>
        {$gb_list->render()}
      </ul>
    </div>
    {/notempty} </div>
</div>
<!--左侧盒子结束-->
<!--右侧盒子开始-->
<div class="box-main-content">
<div class="layout-box clearfix pg-0">
<div class="box-title bt">
  <h3 class="m-0"><i class="icon iconfont">&#xe65b;</i>我要留言</h3>
</div>
<mip-form id="gbook-form" method="post" role="form" onSubmit="return false;">
<input name="gb_vid" type="hidden" id="gb_vid" value="{$vod_id|default=0}"/>
<div class="col-md-12 ">
  <input class="form-control txt" name="gb_nickname" id="gb_nickname" type="text" value="{notempty name="user_id"}{$user_nickname}{/notempty}" placeholder="请输入您的昵称" {notempty name="user_id"}readonly="readonly"{/notempty}>
</div>
<div class="col-md-12 pg-0">
  <ul class="box-index-mcid clearfix" id="gb_types">
    <li {notempty name="vod_id"}class="active"{/notempty} val="2"><a href="javascript:void(0);" class="text-overflow">报错</a></li>
    <li val="3"><a href="javascript:void(0);" class="text-overflow">故障</a></li>
    <li val="4"><a href="javascript:void(0);" class="text-overflow">建议</a></li>
    <li {empty name="vod_id"}class="active"{/empty} val="1"><a href="javascript:void(0);" class="text-overflow">其他</a></li>
  </ul>
  <input type="hidden" name="gb_cid" id="gb_type" value="{notempty name="vod_id"}2{else/}1{/notempty}">
</div>
<div class="col-md-12">
<textarea cols="40" class="form-control txt" name="gb_content" id="gb_content" rows="5" placeholder="输入留言内容">{$gb_content}</textarea>
</div>
{notempty name="GLOBALS['config']['user']['sys']['user_code']"}
<div class="col-md-12 clearfix">
<div class="col-md-6 col-xs-6 p-0">
<input class="form-control txt" data="validate" name="validate" type="text" placeholder="验证码">
</div>
 <div class="col-md-6 col-xs-6" style="padding:0px 5px"><span id="validate-zanpian"><label><mip-img class="validate-img" src="{:url('home/verify/index',array('t'=>time()))}" /></label></span></div>
</div>
{/notempty} 
<div class="col-md-12 clearfix"><div class="btn btn-primary pull-left" id="gb-submit">发送留言</div></div>
</mip-form>
</div>
<!--右侧盒子结束-->
</div>
</div>
<script>
var type_ajax_url="index.php?s=home-gb-show";
var type_parms={"id":"{$param['id']}","p":1};
</script>
<!--盒子结束-->
{include file="zp_footer" /}
</body>
</html>